import request from '../../utils/request';
import deptTranUrl from '../urls/depttran'


//新增部门调度信息
export const addDeptTran = data => {
    return request({
        headers: {
            "Content-Type": "application/json"
        },
        url: deptTranUrl.addDeptTranUrl,
        method: 'post',
        data: data
    });
};


//根据上传的参数获取部门调度信息
export const fetchDeptTran = data => {
    return request({
        url: deptTranUrl.fetchDeptTranUrl,
        method: 'get',
        params: data
    });
};

    
//部门调度报表，根据上传的开始和结束时间查询这段时间内的数据
export const fetchDeptTranByTime = data => {
    return request({
        url: deptTranUrl.fetchDeptTranByTimeUrl,
        method: 'get',
        params: data
    });
};
    
    